package com.beverages.commodities.client;

import com.beverages.commodities.common.Result;
import com.beverages.commodities.config.FeignOkHttpConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "shared-file-service", url = "${shared.files.service.url}", configuration = FeignOkHttpConfig.class)
public interface SharedFilesClient {
    @GetMapping("/shared/files/url/{fileId}")
    Result<String> getFileUrlById(@PathVariable("fileId") Integer fileId);
}
